import 'package:flutter/material.dart';
import 'package:free_table/views/home_page.dart';
import 'package:system_tray/system_tray.dart';
import 'config/app.config.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final AppWindow appWindow = AppWindow();
  initWindow();
  initSystemTray(appWindow);
  runApp(const MyApp());
}


class MyApp extends StatelessWidget {
  const MyApp({super.key});
  
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});
  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: HomePage(),
    );
  }
}

